import * as record from '../../core/medicalRecord';

module.exports = r => {
    r.get('/getclassandseg/:isactive', ctx => record.getClassAndSeg(ctx.params.isactive).then(ctx.done, ctx.fail));
    r.get('/getelement/:segcode/:isactive', ctx => record.getElementBySegCode(ctx.params.segcode, ctx.params.isactive).then(ctx.done, ctx.fail));
    r.get('/getelementvalue/:elcode/:isactive', ctx => record.getValuesByEleCode(ctx.params.elcode, ctx.params.isactive).then(ctx.done, ctx.fail));
};
